package me.innolux.daxin_nesting.controller;

import lombok.RequiredArgsConstructor;
import me.innolux.daxin_nesting.Service.WcsService;
import me.innolux.daxin_nesting.pojo.vo.WcsReturnVo;
import me.innolux.daxin_nesting.sqlService.MiddleTableService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wms")
@RequiredArgsConstructor
public class WcsController {
    private final WcsService wcsService;

    @PostMapping("/middle")
    public WcsReturnVo middle(@RequestBody String containerCode){
        WcsReturnVo wcsReturnVo = wcsService.middle(containerCode);
        return wcsReturnVo;
    }
}
